﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="IssuingOrderInfoEditPopup.aspx.cs" Inherits="NetDon.OA.Portal.Shunting.IssuingOrderInfoEdit" %>

<%@ Import Namespace="NetDon.OA.Interface" %>
<%@ Import Namespace="NetDon.Utilities" %>
<%@ Register Src="IssuringOrderEditUserControl.ascx" TagName="IssuringOrderEdit"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">

        $(document).ready(function () {
            var dialog;
            if (window.top == window) {
                dialog = window;
            } else {

                dialog = window.top.Page.Dialog.find(function (item) {
                    return item._contentFrame.contentWindow == window;
                });

            }
            var fieldId = $get('<%=this.fieldIds.ClientID %>');


            var reloadButton = $get('<%=btnReLoadIds.ClientID %>');
            if (dialog && !reloadButton.disabled) {

                $text(fieldId, dialog._context.dialogArguments.Ids);
                reloadButton.click();


            }
        });


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="panelBasic" runat="server" DefaultButton="btnSaveAndNew">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <uc1:IssuringOrderEdit runat="server" ID="IssuringOrderEditUC" />
                </td>
            </tr>
            <tr>
                <td style="padding-left: 150px">
                    <asp:Button ID="btnSaveAndNew" runat="server" SkinID="Button120" OnClick="btnSaveAndNew_Click"
                        Text="保存并新增" />
                    <asp:Button ID="btnSave" runat="server" SkinID="Button80" Text="保存" OnClick="btnSave_Click" />
                    <asp:Button ID="btnCancel" runat="server" SkinID="Button80" Text="取消" CausesValidation="false" />
                    <NetDon:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                        ShowSummary="false" />
                </td>
            </tr>
            <tr>
                <td style="padding-left: 150px; padding-top: 4px;">
                    <asp:Button ID="btnSaveAndNext" runat="server" SkinID="Button120" OnClick="btnSaveAndNext_Click"
                        Text="保存并编辑下一个" />
                    <asp:Button ID="btnNext" runat="server" SkinID="Button80" Text="下一个" OnClick="btnNext_Click"
                        CausesValidation="False" />
                    <asp:Button ID="btnPrevious" runat="server" SkinID="Button80" Text="上一个" OnClick="btnPrevious_Click"
                        CausesValidation="False" />
                    <asp:Button ID="btnSaveAndPrevious" runat="server" SkinID="Button120" OnClick="btnSaveAndPrevious_Click"
                        Text="保存并编辑上一个" />
                </td>
            </tr>
            <tr><Br /></tr>

        </table>
    </asp:Panel>
    <asp:HiddenField ID="fieldIds" runat="server" />
    <asp:Button ID="btnReLoadIds" runat="server" SkinID="Hidden" OnClick="btnReLoadIds_Click"
        CausesValidation="false" />
</asp:Content>
